import RouteView from "@/components/RouteView.vue";
const useRouters = [
  {
    path: "use",
    name: "Use",
    meta: { title: "常用", icon: "Star" },
    component: RouteView,
    children: [
      {
        path: "three",
        name: "Three",
        meta: { title: "Three" },
        component: RouteView,
        children: [
          {
            path: "index",
            name: "ThreeIndex",
            meta: { title: "初始模型" },
            component: () => import("@/views/use/Three/index.vue"),
          },
          {
            path: "line",
            name: "ThreeLine",
            meta: { title: "画线" },
            component: () => import("@/views/use/Three/line.vue"),
          },
          {
            path: "text",
            name: "ThreeText",
            meta: { title: "创建文字" },
            component: () => import("@/views/use/Three/text.vue"),
          },
          {
            path: "3dmode",
            name: "3dmode",
            meta: { title: "载入3D模型" },
            component: () => import("@/views/use/Three/3dmode.vue"),
          },
          {
            path: "webgl_decals",
            name: "Webgl_decals",
            meta: { title: "动画" },
            component: () => import("@/views/use/Three/webgl_decals.vue"),
          },
          {
            path: "decals",
            name: "Decals",
            meta: { title: "贴画" },
            component: () => import("@/views/use/Three/decals.vue"),
          },
          {
            path: "glb_use",
            name: "Glb_use",
            meta: { title: "glb_use" },
            component: () => import("@/views/use/Three/glb_use.vue"),
          },
        ],
      },
      {
        path: "form",
        name: "Form",
        meta: { title: "表单" },
        component: RouteView,
        children: [
          {
            path: "skin",
            name: "FormSkin",
            meta: { title: "二次封装" },
            component: () => import("/@/views/use/Form/skin.vue"),
          },
          {
            path: "rule",
            name: "FormRule",
            meta: { title: "校验" },
            component: () => import("/@/views/use/Form/rule.vue"),
          },
        ],
      },
      {
        path: "detail",
        name: "Detail",
        meta: { title: "详情" },
        component: () => import("@/views/use/Detail.vue"),
      },
      {
        path: "city",
        name: "City",
        meta: { title: "城市选择器" },
        component: () => import("@/views/use/City.vue"),
      },
      {
        path: "image",
        name: "Image",
        meta: { title: "图片" },
        component: () => import("@/views/use/Image.vue"),
      },
      {
        path: "file",
        name: "File",
        meta: { title: "文件" },
        component: () => import("@/views/use/File.vue"),
      },
      {
        path: "map",
        name: "Map",
        meta: { title: "地图" },
        component: () => import("@/views/use/Map.vue"),
      },
      {
        path: "notice",
        name: "Noticeap",
        meta: { title: "消息提醒" },
        component: () => import("@/views/use/Notice.vue"),
      },
      {
        path: "log",
        name: "Log",
        meta: { title: "系统日志" },
        component: () => import("@/views/use/Log.vue"),
      },
    ],
  },
];

export default useRouters;
